<div class="fsh-pop">
    <div id="add_form" class="layui-form" lay-filter="add_form">
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>学校代码</label>
            <div class="layui-input-block">
                <input name="schoolCode" readonly  class="layui-input">
                <input name="server_id" type="hidden">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="enable" value=true title="启用" checked>
                <input type="radio" name="enable" value=false title="禁用">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>内网地址</label>
            <div class="layui-input-block">
                <input  type="text" name="lan_ip" lay-verify="required" placeholder="请输入关键字" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>内网RTMP端口</label>
            <div class="layui-input-block">
                <input type="text" name="lan_rtmp_port" lay-verify="required" placeholder="请输入关键字" class="layui-input" value="1935">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>内网HTTP端口</label>
            <div class="layui-input-block">
                <input type="text" name="lan_http_port" lay-verify="required" placeholder="请输入关键字" class="layui-input" value="8081">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>内网hlv端口</label>
            <div class="layui-input-block">
                <input type="text" name="lan_hlv_port" lay-verify="required" placeholder="请输入关键字" class="layui-input" value="88">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>外网地址</label>
            <div class="layui-input-block">
                <input  type="text" name="wan_ip" lay-verify="required" placeholder="请输入关键字" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>外网RTMP端口</label>
            <div class="layui-input-block">
                <input type="text" name="wan_rtmp_port" lay-verify="required" placeholder="请输入关键字" class="layui-input" value="1935">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>外网HTTP端口</label>
            <div class="layui-input-block">
                <input type="text" name="wan_http_port" lay-verify="required" placeholder="请输入关键字" class="layui-input" value="8081">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>外网HLV端口</label>
            <div class="layui-input-block">
                <input type="text" name="wan_hlv_port" lay-verify="required" placeholder="请输入关键字" class="layui-input" value="88">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>域名</label>
            <div class="layui-input-block">
                <input type="text" name="domain" lay-verify="" placeholder="请输入关键字" class="layui-input" >
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.use(['form'], function () {
        var _formObj = JSON.parse($('<div>').html('<%=$data%>').text())||{};
        console.log(_formObj);
        layui.form.val('add_form', _formObj);
    });
</script>